package com.example.module_mine.mine.repository

import com.example.lib_net.api.Api
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import javax.inject.Inject

/**
 * @author yaotianxue
 * @description
 * @date 2025/2/10
 */
class MineRepository @Inject constructor() {
    @Inject
    lateinit var api: Api

    /**
     * 获得用户信息
     */
    fun getUserInfo() = flow {
        emit(api.getUserInfo())
    }.flowOn(Dispatchers.IO)

}